-- GENERATED SPELL FOR [Sunhawk Reclaimer] --


function spell0_17606(pUnit, Event) --@Exploit Weakness,n/a--
pUnit:FullCastSpellOnTarget(6595,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17606', 0, 1)
end

function spell1_17606(pUnit, Event) --@Fireball,n/a--
pUnit:FullCastSpellOnTarget(19816,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17606', 3000, 1)
end

function spell2_17606(pUnit, Event) --@Frost Armor,Self--
pUnit:FullCastSpellOnTarget(12544,pUnit)
pUnit:RegisterEvent('Sorts_17606', 0, 1)
end

function spell3_17606(pUnit, Event) --@Mark of the Sunhawk,n/a--
pUnit:FullCastSpellOnTarget(31734,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17606', 20340, 1)
end

function Sorts_17606(pUnit, Event)
local choix_sorts_17606 = math.random(0, 3)
if choix_sorts_17606 == 0 then
pUnit:RegisterEvent('spell0_17606', 1, 1)
end
if choix_sorts_17606 == 1 then
pUnit:RegisterEvent('spell1_17606', 1, 1)
end
if choix_sorts_17606 == 2 then
pUnit:RegisterEvent('spell2_17606', 1, 1)
end
if choix_sorts_17606 == 3 then
pUnit:RegisterEvent('spell3_17606', 1, 1)
end
end

function mob17606_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17606', math.random(1500, 3000), 1)
end

function mob17606_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17606_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17606_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17606, 1, 'mob17606_Action')
RegisterUnitEvent(17606, 2, 'mob17606_Leave')
RegisterUnitEvent(17606, 3, 'mob17606_Kill')
RegisterUnitEvent(17606, 4, 'mob17606_Die')
